package com.zy.explore.sys.interfaces.frm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * description 站内信保存Frm
 *
 * @author 🇨🇳中国印🇨🇳
 * @date 2021年07月11日 23:26
 */
@ApiModel("站内信保存Frm")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class StaMsgSaveFrm {

    @ApiModelProperty(value = "站内信ID，有值则更新，无值则新增", example = "1")
    private Long id;

    @ApiModelProperty(value = "优先级 1.普通 2.重要 3.紧急", required = true, example = "1")
    private Integer priority;

    @ApiModelProperty(value = "站内信标题", required = true, example = "有关人事任免通知")
    private String title;

    @ApiModelProperty(value = "站内信内容", required = true, example = "面朝大海春暖花开")
    private String msgContent;

    @ApiModelProperty("消息类型 1.系统公告 2.系统通知")
    private Integer msgType;

    @ApiModelProperty(value = "发送对象，为空表示发送给全体", example = "[{\"id\":1, \"name\": \"张三\"}]")
    private List<SendToUserFrm> users;

    @ApiModelProperty(value = "发布时间 yyyy-MM-dd HH:mm:ss", required = true, example = "2021-05-20 18:30:00")
    private String publishTime;
}
